﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;

namespace eCashDatalayer
{
    public class IncommingmailModel: INotifyPropertyChanged
    {


        public event PropertyChangedEventHandler PropertyChanged;

        private int _Incoming_mail_ID;
        private int _Ministry_ID;
        private DateTime _Date_of_receipt_Received;
        private DateTime _Date_of_letter_Date_inside_letter;
        private DateTime _Date_captured;
        private string _Subject;
        private string _Subject2;
        private string _Recipient_Receiver_ID;
        private string _Section_Department_ID;
        private string _Ministry_refnumber;
        private string _Reference_number;
        private string _PrivateIndividual;
        private int _Refered_to;
        private string _Refered_to_str;
        private DateTime _Date_entered;
        private string _MinistryName;
        private string _sEntereredby;

 
        /// When the Property is changed from the PL this gets Fired
        /// </summary>
        /// <param name="property"></param>
        private void OnPropertyChanged(String property)
        {


            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(property));
            }
        }


        public int Incoming_mail_ID
        {

            get
            {
                return _Incoming_mail_ID;
            }
            set
            {
                _Incoming_mail_ID = value;

                OnPropertyChanged("Incoming_mail_ID");

            }
        }


        public int Ministry_ID
        {

            get
            {
                return _Ministry_ID;
            }
            set
            {
                _Ministry_ID = value;

                OnPropertyChanged("Ministry_ID");

            }
        }


        public DateTime Date_of_letter_Date_inside_letter
        {

            get
            {
                return _Date_of_letter_Date_inside_letter;
            }
            set
            {
                _Date_of_letter_Date_inside_letter = value;

                OnPropertyChanged("Date_of_letter_Date_inside_letter");

            }
        }


        public DateTime Date_captured
        {

            get
            {
                return _Date_captured;
            }
            set
            {
                _Date_captured = value;

                OnPropertyChanged("Date_captured");

            }
        }

        public string Subject
        {

            get
            {
                return _Subject;
            }
            set
            {
                _Subject = value;

                OnPropertyChanged("Subject");

            }
        }
        public string Subject2
        {

            get
            {
                return _Subject2;
            }
            set
            {
                _Subject2 = value;

                OnPropertyChanged("Subject2");

            }
        }

        public string Recipient_Receiver_ID
        {

            get
            {
                return _Recipient_Receiver_ID;
            }
            set
            {
                _Recipient_Receiver_ID = value;

                OnPropertyChanged("Recipient_Receiver_ID");

            }
        }
        public string Section_Department_ID
        {

            get
            {
                return _Section_Department_ID;
            }
            set
            {
                _Section_Department_ID = value;

                OnPropertyChanged("Section_Department_ID");

            }
        }

        public string Ministry_refnumber
        {

            get
            {
                return _Ministry_refnumber;
            }
            set
            {
                _Ministry_refnumber = value;

                OnPropertyChanged("Ministry_refnumber");

            }
        }

        public string Reference_number
        {

            get
            {
                return _Reference_number;
            }
            set
            {
                _Reference_number = value;

                OnPropertyChanged("Reference_number");

            }
        }

        public string PrivateIndividual
        {

            get
            {
                return _PrivateIndividual;
            }
            set
            {
                _PrivateIndividual = value;

                OnPropertyChanged("PrivateIndividual");

            }
        }
        public int Refered_to
        {

            get
            {
                return _Refered_to;
            }
            set
            {
                _Refered_to = value;

                OnPropertyChanged("Refered_to");

            }
        }
        public string Refered_to_str
        {

            get
            {
                return _Refered_to_str;
            }
            set
            {
                _Refered_to_str = value;

                OnPropertyChanged("Refered_to_str ");

            }
        }
        
        public DateTime Date_entered
        {

            get
            {
                return _Date_entered;
            }
            set
            {
                _Date_entered = value;

                OnPropertyChanged("Date_entered");

            }
        }

        public DateTime Date_of_receipt_Received
        {

            get
            {
                return _Date_of_receipt_Received;
            }
            set
            {
                _Date_of_receipt_Received = value;

                OnPropertyChanged("Date_of_receipt_Received");

            }
        }
        
        public string MinistryName
        {

            get
            {
                return _MinistryName;
            }
            set
            {
                _MinistryName = value;

                OnPropertyChanged("MinistryName");

            }
        }
        public string sEntereredby
        {

            get
            {
                return _sEntereredby;
            }
            set
            {
                _sEntereredby = value;

                OnPropertyChanged("sEntereredby");

            }
        } 
        
    }
}